import React from "react";
import PropTypes from "prop-types";

/**
 * 纯展示型表单
 */

const TextForm = ({ fieldName, fieldValue }) => (
  <div className="preview-profile-group">
    <div className="preview-profile-field">
      <span className="preview-profile-field-span">{fieldName}</span>
    </div>
    <div className="preview-profile-value">{fieldValue}</div>
  </div>
);

TextForm.defaultProps = {};
TextForm.propTypes = {
  fieldName: PropTypes.string,
  fieldValue: PropTypes.string
};
module.exports = TextForm;
